package com.example.centre;

import java.util.ArrayList;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.GridView;
import android.widget.ImageView;

import com.example.jhf.R;
import com.example.space.ClassAlbum;
import com.example.space.ClassAlbumAdapter;
import com.example.space.ClassAlbumPer;

public class Center_XC extends Activity {
	private ArrayList<ClassAlbumPer> data;
	private ClassAlbumPer per;
	private Context context;
	private ImageView shooll_GK;
	private GridView gridView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.center_xc);
		gridView = (GridView) findViewById(R.id.classxc_id);
		shooll_GK = (ImageView) findViewById(R.id.shooll_GK);
		shooll_GK.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Center_XC.this.finish();
			}
		});
		data = new ArrayList<ClassAlbumPer>();

		context = this;
		//name();
	}

//	public void name() {
//		for (int i = 0; i < title.length; i++) {
//			per = new ClassAlbumPer();
//			per.setClasstubiao(title[i]);
//			per.setClasszhuozhe(name[i]);
//			per.setClasstutiem(title[i]);
//			per.setClasstuNum(ti[i]);
//			data.add(per);
//		}
//
//		ClassAlbumAdapter cAdapter = new ClassAlbumAdapter(Center_XC.this, data);
//		gridView.setAdapter(cAdapter);
//	}
}